package com.kai.steering.data.service.entity.po;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.kai.steering.data.service.entity.domainObject.NoteDO;
import lombok.*;

import java.io.Serializable;

/**
 * <pre>
 * 笔记
 * </pre>
 *
 * @author kai
 * @since 2022-02-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName(value = "note")

public class Note implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 笔记id
     */
    @TableId(value = "note_id", type = IdType.ASSIGN_UUID)

    private String noteId;


    /**
     * 用户_题目id
     */

    private String userQuestionId;


    /**
     * 内容
     */

    private String content;


    /**
     * 更新时间
     */

    private Date updateDatetime;


    /**
     * 存在0删除1
     */

    private Integer usable;


    /**
     * 删除日期
     */

    private Date deleteDatetime;


    public Note(NoteDO noteDO) {
        BeanUtil.copyProperties(noteDO,this);
    }
}
